/**
 * 2018年5月19日下午11:10:52
 */
package com.an.nopro.app.framework.schedulejob;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.stereotype.Component;

/**
 * 
 * @目的：.<br>
 * 
 * @author 86171
 * @date 2018年5月19日下午11:10:52
 * 
 */
//@Component
public class TimeReport2 {

	private static final Logger log = LoggerFactory.getLogger(TimeReport2.class);

	@Scheduled(fixedRate = 1000)
	public void f7() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.debug("当前时间，我是方法f7()");
	}

	@Scheduled(fixedRate = 1000)
	public void f6() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.debug("当前时间，我是方法f6()");
	}

	@Scheduled(fixedRate = 500)
	public void f5() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.debug("当前时间，我是方法f5()");
	}

	@Scheduled(fixedRate = 1000)
	public void f4() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.debug("当前时间，我是方法f4()");
	}

	@Scheduled(fixedRate = 1000)
	public void f3() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.debug("当前时间，我是方法f3()");
	}

	@Scheduled(fixedRate = 1000)
	public void f2() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.debug("当前时间，我是方法f2()");
	}
}
